package ec.edu.ucacue.siop.modelo.recurso;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @author Edgar Chacon
 * Variable de relacion
 *
 */
@Entity
@Table(name="variable_proceso_asociada")
public class VariableProcesoAsociada implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id;
	private VariableProceso varPrincipal;
	private VariableAlimentacion varAlimPrincipal;
	private VariableProceso variableComponente;
	private String rol;
	
	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	@ManyToOne
	public VariableProceso getVarPrincipal() {
		return varPrincipal;
	}
	public void setVarPrincipal(VariableProceso varPrincipal) {
		this.varPrincipal = varPrincipal;
	}
	@ManyToOne
	public VariableAlimentacion getVarAlimPrincipal() {
		return varAlimPrincipal;
	}
	public void setVarAlimPrincipal(VariableAlimentacion varAlimPrincipal) {
		this.varAlimPrincipal = varAlimPrincipal;
	}
	@ManyToOne
	public VariableProceso getVariableComponente() {
		return variableComponente;
	}
	public void setVariableComponente(VariableProceso variableComponente) {
		this.variableComponente = variableComponente;
	}
	@Column(length = 32)
	public String getRol() {
		return rol;
	}
	public void setRol(String rol) {
		this.rol = rol;
	}
	

}
